<div id="header">
	<div id="title">
		<h1>
			<%= t :application_title %>
			<%= link_to @project.name, project_path(@project) if defined? @project and !@project.name.nil? %>
		</h1>
	</div>
	
	<% if yield(:navigation) %>
		<%= yield(:navigation) %>
	<% else %>
		<%= render "navigation/project_navigation" %>
	<% end %>
	
	<% if user_logged? %>
		<div id="current_user_header">
			<p><small><%= t :logged_as, :scope => :authentication, :user => link_to(current_user.email, current_user) %></small></p>
			<p>
				<%= link_to t(:edit_profile, :scope => :user), preferences_user_url(current_user), :class => "icon user-edit" %>
				<%= link_to t(:logout, :scope => :authentication), logout_url, :class => "indented-10 icon logout" %>
			</p>
		</div>
	<% end %>
</div>

<%= yield(:subtabs) || "" %>